package sgi.misc;

import sgi.details_new.ImageDetails;
/**The image object as defined by the project. Contains the image details and the image itself as a Blob
 * Used in retrieving image data from the database*/
public class Image implements java.io.Serializable {
	
	private static final long serialVersionUID = 1L;
	private ImageDetails details;
	private byte[] blobAsBytes;
	
	public Image(byte[] blobAsBytes)
	{
		this.blobAsBytes = blobAsBytes;
	}
	
	public ImageDetails getDetails() {
		return details;
	}
	public void setDetails(ImageDetails details) {
		this.details = details;
	}

	/**gets image as byte array*/
	public byte[] getBlobAsBytes() {
		return blobAsBytes;
	}
	/**sets image as byte array*/
	public void setBlobAsBytes(byte[] blobAsBytes) {
		this.blobAsBytes = blobAsBytes;
	}
	
	
	
}
